﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Text;

namespace WXYW
{
    public partial class Logoff : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ContextService.ClearAccount();
            FormsAuthentication.SignOut();

            StringBuilder sb = new System.Text.StringBuilder();
            sb.Append("<script language='javascript'>");
            sb.Append("top.window.location = \"Default.aspx\";");
            sb.Append("<");
            sb.Append("/script>");
            this.RegisterStartupScript("ParentLoad", sb.ToString());
        }
    }
}
